<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>
        <block name="title">后台管理中心</block>
    </title>

    <link rel="stylesheet" href="__STATIC__/plugin/bootstrap/css/bootstrap.min.css?v=__STATIC_VERSION__">
    <link rel="stylesheet" href="__STATIC__/plugin/font_awesome/css/font-awesome.min.css?v=__STATIC_VERSION__">
    <link rel="stylesheet" href="__STATIC__/admin/css/pintuer.css?v=__STATIC_VERSION__">
    <link rel="stylesheet" href="__STATIC__/admin/css/admin.css?v=__STATIC_VERSION__">
    <block name="css">
    </block>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <div class="h1"><img src="__STATIC__/admin/images/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心</div>
    </div>
    <div class="head-l">
        <a class="button button-little bg-green" href="/" target="_blank"><span class="icon-home"></span> 网站首页</a> &nbsp;&nbsp;
        <a href="javascript:void(0);" data-url="{:U('Public/clean')}" class="button button-little bg-blue ajax-click"><span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;
        <a class="button button-little bg-red" href="{:U('Public/loginOut')}"><span class="icon-power-off"></span> 退出登录</a>
    </div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <foreach name="menuList" item="value">

        <empty name="value.sub">
            <a href="{:U($value['url'], 'mid='.$value['menu_id'])}" class="<if condition="$value['menu_id'] eq I('mid')">on</if>"><h2><span class="{$value.icon}"></span>{$value.menu_name}</h2></a>
            <else/>
                <h2 class="<if condition="$value['menu_id'] eq I('menu_id')">on</if>"><span class="{$value.icon}"></span>{$value.menu_name}</h2>
                <ul>
                    <foreach name="value.sub" item="sub_menu">
                        <li><a href="{:U($sub_menu['url'], 'mid='.$sub_menu['menu_id'])}" class="<if condition="$sub_menu['menu_id'] eq I('mid')">on</if>"><span class="{$sub_menu.icon|default='icon-caret-right'}"></span>{$sub_menu.menu_name}</a></li>
                    </foreach>
                </ul>
        </empty>
    </foreach>
</div>

<ul class="bread">
    <empty name="bread_crumb">
        <li><a href="{:U('Index/index')}" class="icon-home"> 首页</a></li>
        <else/>
        <foreach name="bread_crumb" item="val">
            <li><a href="{:U($val['url'] ? $val['url'] : 'Index/index', 'mid='.$val['menu_id'])}" class="{$val.icon}"> {$val.menu_name}</a></li>
        </foreach>
    </empty>
</ul>
<div class="admin">
    <block name="content">
    </block>
</div>
<include file="Public:scripts"/>

<block name="js"></block>
<script type="text/javascript">


    $(function () {

        $.geek && $.geek.{$Think.const.ACTION_NAME} && $.geek.{$Think.const.ACTION_NAME}();
        $('.leftnav h2.on').next().slideToggle();
        $('.leftnav ul li a.on').parent().parent().prev().addClass('on');
        $('.leftnav ul li a.on').parent().parent().slideToggle();
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>

</body>
</html>